The Dreamweaver JavaScript API > File manipulation functions > dreamweaver.browseForFolderURL()

 

dreamweaver.browseForFolderURL()

Availability

Dreamweaver 3.0

Description

Opens the Choose Folder dialog box with the specified label in the title bar.

Arguments

{titleBarLabel}, {directoryToStartIn}

titleBarLabel is the label that should appear in the title bar of the dialog box. If omitted, titleBarLabel defaults to "Choose Folder."
directoryToStartIn is the path to the directory to start in, expressed as a file:// URL.

Returns

A string containing the name of the folder, expressed as a file:// URL.

Enabler

None.

Example

The following code returns the URL of a folder:

return dw.browseForFolderURL('Select a Folder', dw.getSiteRoot());